<a class="icoAdicionar modalGroup" align="absbottom" href="<?php echo url_for('mailing_group/dialog')?>"> </a>

<script type="text/javascript">
$(document).ready(function(){
	$('.modalGroup').click(function()
    {
    	$("#modal-content").dialog("destroy");
        $("#modal-content").html('');
        $("#modal-content").load($(this).attr("href"));

        $('#modal-content').dialog({
			width: 550,
			title: 'Cadastrar novo Grupo',
			modal: true,
			buttons: {
				'Cancelar': function() {
					$(this).dialog('close');
				},
				'Salvar': function() { salvarGrupo(); }
			}
		});
        $('#modal-content').dialog('open');
        return false;
    });
});
</script>